<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //利用new Object创建对象
        var obj = new Object();
        obj.umane = '孙金瑶';
        obj.age = 18;
        obj.sex = '女';
        obj.sayhi = function () {
            console.log('hi');
        }
        console.log(obj.uname);
        console.log(obj.umane);
        obj.sayhi();
    </script>
</head>

<body>

</body>

</html>